﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="hospital_search.aspx.cs" Inherits="hospital_search" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2><label id="header_label" runat="server">Hospital Search</label> </h2>
        </div>

    </div>

    <div class="hospital">
        <!--hospitalsearch start-->
        <div class="hospitalsearch">
            <div class="left">
                <label id="lbl">Refine Your Search</label>

                <div id="navigation">
                    <div class="accordionButton">Hospital Name</div>
                    <div>
                        <input type="text" value="Search" name="text" id="txtname" runat="server" onblur="if (this.value == '') {this.value = 'Search';}" onfocus="if (this.value == 'Search') {this.value = '';}" style="width: 187px;margin: 5px;" />
                    </div>
                   
                    <div class="accordionButton">Address</div>
                    <div class="accordionContent">
                        <div class="filter_group filter_group_v1 " style="display: block;">
                            <div class="filter-search-bar">
                                <input type="text" id="txtaddress" runat="server" autocomplete="off" style="width: 187px;margin: 5px;" />
                                <span class="mag-glass"></span>
                            </div>
                         

                        </div>
                    </div>
                     <div class="accordionButton"><label id="lbl_state" runat="server"></label></div>
                    <div class="accordionContent">
                       <%-- <asp:CheckBoxList ID="chk_Country"  runat="server" DataTextField="name" DataValueField="ID" /> --%>
                     <asp:RadioButtonList ID="chk_Country"  runat="server" DataTextField="name" DataValueField="ID" /> 
                    </div>
                    <div class="accordionButton">Hospital Type</div>
                    <div class="accordionContent">
                      <div class="filter_group filter_group_v1 " style="display: block;">
                            <div class="filter-search-bar">
                                <input type="text" id="txtZipcode" runat="server" autocomplete="off" style="width: 187px;margin: 5px;" />
                                <span class="mag-glass"></span>
                            </div>
                         

                        </div>

                    </div>
                    <div style="margin-left: 20px; margin-top: 10px; margin-bottom: 10px;">
                        <div style="margin-top: 10px; margin-bottom: 10px;text-align:center; }">
                            <br/>
                             <asp:LinkButton ID="btnSearch" runat="server" CssClass="buttonclass" Text="SEARCH" OnClick="btnSearch_Click" style="margin-top:10px" ></asp:LinkButton>
                             
                        </div>
                    </div>
                </div>
                <img src="images/BVRMC_SL-Banner_r4 (1).jpg" />
            </div>
            <div class="mid">
                <label id="lbl" ><label id="lblheadr" runat="server">Hospital Search Result</label></label>

                <asp:GridView
                    runat="Server"
                    DataKeyNames="ID"
                    ID="grdHospitals"
                    AllowPaging="True"
                    AutoGenerateColumns="False"
                    Width="100%" EnableModelValidation="True" BorderWidth="0" Style="float: left;"   OnPageIndexChanging="grdHospitals_PageIndexChanging"
                   >
                    <PagerStyle HorizontalAlign="Center" ></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <div class="name">
                                    <h5><a href="<%=Session["strHttp"]%>hospital.aspx?<%=search_type %>&id=<%# Eval("ID")%>"><%# Eval("Hospital_Name") %></a></h5>
                                    <%--<h5><a href="<%=Session["strHttp"]%>hospital/<%# Eval("Hospital_Name").ToString().Replace("-", "").Replace(" ", "_").Replace(",", "").Replace(".", "")%>-<%# Eval("ID")%>.aspx"><%# Eval("Hospital_Name") %></a></h5>--%>
                                    <div>
                                       <%-- <img src="images/star.jpg" />Be the first to review--%><br/>
                                    </div>
                                    <p>Our hospitals and health clinics directory includes</p>
                                    <p><b>Address:</b> <span><%# Eval("Address") %></span></p>
                                    <p><%if (Request.QueryString["t"].ToString() == "usa"){ %><b>State:</b><%} else { %><b>Country:</b><%} %> <span><%# Eval("Country") %></span></p>
                                    <p><b>Website:</b> <span><%# CommonFunction.urlconversion(Eval("Website").ToString()) %></span></p>
                                    <table style="float: right;">
                                        <tr>
                                            <td>
                                                <div><a href="<%=Session["strHttp"]%>hospital.aspx?<%=search_type %>&id=<%# Eval("ID")%>" class="buttonclass">VIEW PROFILE</a></div>
                                            </td>
                                            <%--<td>
                                                <div><a href="#" class="buttonclass">BOOK NOW</a></div>
                                            </td>--%>
                                        </tr>
                                    </table>
                                </div>


                                
                            </ItemTemplate>
                            <ItemStyle Width="25%" />
                        </asp:TemplateField>


                    </Columns>
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:GridView>




            </div>
            <div class="hospital_right">
                <label for="Service_Name" id="lbl">Top Hospital</label>
                <div class="rankings">
                    <ul class="ranking-list">
                        <asp:Repeater ID="Top_Hospital_Repeater" runat="server">

                            <ItemTemplate>
                                 <li>
                                     <a href="<%=Session["strHttp"]%>hospital.aspx?<%=search_type %>&id=<%# Eval("ID")%>">
                                         <%# Eval("Hospital_Name")%>
                                     </a>
                                      <p class="location"><%# Eval("Country")%></p>
                          </li>
                             
                            </ItemTemplate>

                        </asp:Repeater>
                        
                     
                    </ul>
                   <%-- <p class="more overview">
                        See all <a href="#" style="font-weight: bold">Best Hospitals</a>
                    </p>--%>
                </div>
                <img src="images/doctor.jpg" />
            </div>

            <!--hospitalsearch end-->

        </div>

        <div class="cl"></div>


        <div class="cl">&nbsp;</div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRight" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedBox" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FeatureDocBox" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ScriptContent" runat="Server">
</asp:Content>

